<?php
    $menu_1 = '';
    $menu_2 = '';
    $menu_3 = '';
    $menu_4 = '';
    $menu_5 = ' class="active"';
    $menu_6 = '';
    $menu_7 = '';
    $menu_8 = '';
    include('header.php');
    
    $sql = "SELECT td_th FROM text_data WHERE td_id=11 ORDER BY td_id";
    $result = $db->Execute($sql);
    while (!$result->EOF)
    {
        $msg_ = nl2br($result->fields['td_th']);
        $msg_ = str_replace('<=text_strong=>','<span class="text_bold">',$msg_);
        $msg_ = str_replace('<=/text_strong=>','</span>',$msg_);
        $msg_ = str_replace('[*]','<img src="'.SITEURL.'/images/bullet.gif" class="shap_bullet" />',$msg_);
        $msg = $msg_;
        $result->MoveNext();
    }
    $result->Close();
    
    $sql = "SELECT id_path FROM img_data WHERE id_id=5 ORDER BY id_id";
    $result = $db->Execute($sql);
    $i = 1;
    while (!$result->EOF)
    {
        if(img_exists(APPPATH.'/images',$result->fields['id_path'])){
            $img = '<img src="'.SITEURL.'/images/'.$result->fields['id_path'].'" />';
        }else{
            $img = '';
        }
        $result->MoveNext();
    }
    $result->Close();
?>
	    <div id="main_content">
		
		<div class="page_title" id="shap_title">
		    <img src="images/shape_title.jpg" alt="Fact &amp; Size" />
		</div>
		
		<div id="shap_content_left">
		    <ul>
			<li><a href="standard-shape.php" title="Standard Shape">-&nbsp;&nbsp;Standard Shape</a></li>
			<li><a href="custom-made-shape.php" title="Custom Made Shape">-&nbsp;&nbsp;Custom Made Shape</a></li>
			<li><a href="limitation-on-shape-forming.php" title="Limitation On Shape Forming" class="current">-&nbsp;&nbsp;Limitation On Shape Forming</a></li>
		    </ul>
		</div>
		
		<div id="shap_content_right">
		    <div id="shap_content_title_losf">Limitation On Shape Forming</div>
		    <div id="custom_shap_content_right_losf">
			<div class="msg"><?php echo $msg; ?></div>
		    </div>
		</div>
		<div class="clear">&nbsp;</div>
		
		
		<div id="custom_shap_bottom_img"><?php echo $img; ?></div>
		
	    </div>
<?php
    include('footer.php');
?>